<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>新增系统参数</title>
<link href="/resources/common/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/resources/common/js/jquery.js"></script>
<script type="text/javascript" src="/resources/common/js/jquery.tools.js"></script>
<script type="text/javascript" src="/resources/common/js/jquery.validate.js"></script>
<script type="text/javascript" src="/resources/common/js/common.js"></script>
<script type="text/javascript" src="/resources/common/js/input.js"></script>
<script type="text/javascript">
$().ready(function() {

	var $inputForm = $("#inputForm");
	
	// 表单验证
	$inputForm.validate({
		rules: {
			name: {
				required:true,
				remote: {
					url: "${base}/admin/systemParameter/check_name.jhtml",
					cache: false
				}
			},
			value: {
				required:true,
				digits: true
			}		
		},
		submitHandler:function(form){
			return false;
		}
	});
	
});
</script>
</head>
<body>
	<form id="inputForm" action="save.jhtml" method="post" type="ajax" validate-type="validate" handleType="-1">
		<table class="input">
			<tr>
				<th>
					<span class="requiredField">*</span>参数名称:
				</th>
				<td>
					<input type="text" name="name" class="text" maxlength="200" />
				</td>
			</tr>
			<tr>
				<th>
					<span class="requiredField">*</span>参数值:
				</th>
				<td>
					<input type="text" name="value" class="text" maxlength="200" />
				</td>
			</tr>
			<tr>
				<th>
					备注:
				</th>
				<td>
					<input type="text" name="remark" class="text" maxlength="200" />
				</td>
			</tr>
			<tr>
				<th>
					&nbsp;
				</th>
				<td>
					<input type="submit" class="button" value="${message("admin.common.submit")}" />
					<input type="button" class="button" value="${message("admin.common.back")}" onclick="location.href='list.jhtml'" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>